cmake_minimum_required(VERSION 3.5)

find_package(ifopt)
# Formulate (ifopt:ifopt_core) and solve (ifopt::ifopt_ipopt) the problem
add_executable(test_ipopt test/test_ipopt.cpp)
# Pull in include directories, libraries, ... 
target_link_libraries(test_ipopt PUBLIC ifopt::ifopt_ipopt) 